package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste de if nested
public class If2 extends AtomicActor {

   public If2(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);       
   }

    public void fire() throws IllegalActionException {   
       int a = 1;
       if(a > 10) {
           if(a == 32) {
	       System.out.println("sdk");
	   }
       }
       else
       if(a < 52) {
           int b = 39;
	   if(a + b == 25) {
               System.out.println("mentira");
	       if((a == b - 2) && (b > 39)) {
	           System.out.println("vixe");
	       }
	   }
	   else {
	      b = a + 4;
	   }
       }
       else {
           System.out.println("1");
       }
        
    }
   
}
